import { Notify } from 'vant';
import { Toast } from 'vant';

export const toast=(message)=>{
    Notify({ type: 'danger', message: message,duration:2000 });
}

export const nofity=(message)=>{
    Toast.success({
        message:message,
        duration:1000
    });
}

export const showLoading=(message)=>{
    Toast.loading({
        message: message?message:'提交中...',
        duration:60000,
        forbidClick: true,
    });
}

export const dismissLoading=()=>{
    Toast.clear()
}
